    {include file="../view/head" /}
    <style>
    /*页面自定义样式*/
    </style>
    </head>
    <body>
        {include file="../view/header" /}
        {include file="../view/sidebar" /}
        {include file="../view/right-sidebar" /}
        <!-- Start #content -->
        <div id="content">
            <!-- Start .content-wrapper -->
            <div class="content-wrapper">
                <div class="row">
                    <!-- Start .row -->
                    <!-- Start .page-header -->
                    <div class="col-lg-12 heading hidden-xs hidden-sm">
                        <!-- Start .bredcrumb -->
                        <ul id="crumb" class="breadcrumb"></ul>
                        <!-- End .breadcrumb -->
                    </div>
                    <!-- End .page-header -->
                </div>
                <!-- End .row -->
                <div class="outlet">
                    <!-- Start .outlet -->
                    <!-- Page start here ( usual with .row ) -->
                    <div class="row">
                        <div class="col-lg-12">
                            <!-- Start col-lg-12 -->
                            <div class="panel panel-info toggle panelRefresh">
                                <!-- Start .panel -->
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="im-settings"></i>选择题</h3>
                                </div>
                                <div class="panel-body">
                                    {foreach $lists as $list} 
                                    <form class="form-horizontal group-border hover-stripped" method="post" action="#">
                                        {:token()}
                                        <input type="text" name="type" value="edit" class="hidden">
                                        <input type="text" name="id" value="{$list.id}" class="hidden">
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">题目</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="timu" value="{$list.timu}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">A</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="a" value="{$list.a}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">B</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="b" value="{$list.b}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">C</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="c" value="{$list.c}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">D</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="d" value="{$list.d}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">答案</label>
                                            <div class="col-md-2">
                                                <input type="radio" name="daan" value="a" {if condition='$list.daan eq "a"'}checked{/if}>A
                                            </div>
                                            <div class="col-md-2">
                                                <input type="radio" name="daan" value="b" {if condition='$list.daan eq "b"'}checked{/if}>B
                                            </div>
                                            <div class="col-md-2">
                                                <input type="radio" name="daan" value="c" {if condition='$list.daan eq "c"'}checked{/if}>C
                                            </div>
                                            <div class="col-md-2">
                                                <input type="radio" name="daan" value="d" {if condition='$list.daan eq "d"'}checked{/if}>D
                                            </div>
                                            <div class="col-md-2">
                                                <div class="input-group">
                                                    <span class="input-group-addon">排序</span>
                                                    <input type="text" class="form-control" name="xuhao" value="{$list.xuhao}">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-lg-6 col-md-6">
                                                <a href="{:url('kuang/xuexi',['type'=>'del','id'=>$list.id])}" class="btn btn-danger btn-block">删除题目</a>
                                            </div>
                                            <div class="col-lg-6 col-md-6">
                                                <input type="submit" class="btn btn-primary btn-block" value="修改题目">
                                            </div>
                                        </div>
                                    </form>
                                    {/foreach}
                                </div>
                                <div class="panel-footer">
                                    <div class="col-md-6">
                                        {$lists->render()}
                                    </div>
                                    <div class="col-md-6">
                                        <p>总数：{$lists->total()}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12">
                            <!-- Start col-lg-12 -->
                            <div class="panel panel-info toggle panelRefresh">
                                <!-- Start .panel -->
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="im-settings"></i>新增选择题</h3>
                                </div>
                                <div class="panel-body">
                                    <form class="form-horizontal group-border hover-stripped" method="post" action="#">
                                        {:token()}
                                        <input type="text" name="type" value="add" class="hidden">
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">题目</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="timu">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">A</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="a">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">B</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="b">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">C</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="c">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">D</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="d">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">答案</label>
                                            <div class="col-md-2">
                                                <input type="radio" name="daan" value="a">A
                                            </div>
                                            <div class="col-md-2">
                                                <input type="radio" name="daan" value="b">B
                                            </div>
                                            <div class="col-md-2">
                                                <input type="radio" name="daan" value="c">C
                                            </div>
                                            <div class="col-md-2">
                                                <input type="radio" name="daan" value="d">D
                                            </div>
                                            <div class="col-md-2">
                                                <div class="input-group">
                                                    <span class="input-group-addon">排序</span>
                                                    <input type="text" class="form-control" name="xuhao" value="9999">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-lg-12 col-md-12">
                                                <input type="submit" class="btn btn-primary btn-block" value="添加题目">
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Page End here -->
                </div>
                <!-- End .outlet -->
            </div>
            <!-- End .content-wrapper -->
            <div class="clearfix"></div>
        </div>
        <!-- End #content -->
        {include file="../view/foot" /}
        <script>

        </script>
    </body>
</html>